chore: propagate recent doctest and lint fixes to sibling packages#11585
Merged
chore: propagate recent doctest and lint fixes to sibling packages#11585
Conversation
…y/dcusum*` Propagates fix from 638fdf0 ("docs: improve doctests for ndarray instances in `blas/ext/base/ndarray/gcusumkbn2`") to the five `dcusum*` sibling packages (dcusum, dcusumkbn, dcusumkbn2, dcusumors, dcusumpw), collapsing the two-step `{{alias}}(...);` + `{{alias:@stdlib/ndarray/to-array}}(y)` REPL doctest into the inline `<ndarray>[ ... ]` form.
Propagates fix from 97d6f49 ("docs: improve doctests for ndarray instances in `blas/sdot`") to the `sdot` @example entry in `blas/docs/types/index.d.ts`, collapsing the `// returns <ndarray>` + `var v = z.get();` two-step pattern into the inline `<ndarray>[ -5.0 ]` form used by the adjacent `ddot` entry.
…min` Propagates fix from 0873811 ("docs: inline ndarray output in doctests and add missing article") to `stats/base/ndarray/cumin/lib/main.js`, removing the orphan `@stdlib/ndarray/to-array` require in the `@example` block since the output is already shown via the inline `<ndarray>[ ... ]` form.
Propagates fix from 650bf8a ("chore: fix JavaScript lint errors") to sibling example files that still build error messages via string concatenation. Replaces `new Error( 'text: ' + value )` with `new Error( format( 'text: %s', value ) )` and adds the `@stdlib/string/format` import across `utils/async/inmap`, `utils/async/inmap-right`, `utils/async/for-each`, and `datasets/us-states-capitals-names` examples.
Contributor
Coverage Report
The above coverage report was generated for the changes in this PR. |
develop on 2026-04-19
kgryte
reviewed
Apr 19, 2026
kgryte
reviewed
Apr 19, 2026
kgryte
reviewed
Apr 19, 2026
kgryte
reviewed
Apr 19, 2026
Extends 8adce00 to the matching README example blocks. Athan Reines flagged that the `examples/index.js` fix needed to land in the READMEs too; updates `utils/async/inmap`, `utils/async/inmap-right`, `utils/async/for-each`, and `datasets/us-states-capitals-names` README examples to use `@stdlib/string/format` instead of string concatenation inside `new Error(...)`.
kgryte
approved these changes
Apr 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Propagates four recent
developfixes to sibling packages with the same defect. One commit per source.blas/ext/base/ndarray/dcusum*/docs/repl.txt— source 638fdf0Collapse the two-step
> {{alias}}( ... );+> {{alias:@stdlib/ndarray/to-array}}( y )REPL doctest into the inline<ndarray>[ ... ]form across the fivedcusum*siblings (dcusum,dcusumkbn,dcusumkbn2,dcusumors,dcusumpw).blas/docs/types/index.d.ts— source 97d6f49Inline the
sdot@examplescalar return the same way the adjacentddotentry already is: dropvar v = z.get();+// returns -5.0and fold the value into// returns <ndarray>[ -5.0 ].stats/base/ndarray/cumin/lib/main.js— source 0873811Remove the orphan
require( '@stdlib/ndarray/to-array' )left behind in the@exampleblock (the output is already inlined).utils/async/{inmap,inmap-right,for-each}+datasets/us-states-capitals-names— source 650bf8aReplace
new Error( 'text: ' + value )withnew Error( format( 'text: %s', value ) )and add the@stdlib/string/formatimport.Questions
No.
Other
No related-issue keywords on purpose —
random/iter(49fc241) andnapi/create-*(e08ef82, b946af9) had no remaining candidates after their source commits.Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
Authored by Claude Code running a fix-propagation routine: enumerated commits merged to
developin the last 24h, extracted generalizable patterns, searched for sibling sites, validated with independent reviewer agents, and applied only the high-signal propagations. Draft until a maintainer audits.@stdlib-js/reviewers